package com.maple.soa.controller;

import com.maple.soa.pojo.User;
import com.maple.soa.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author lijian
 * @date 2020/7/6
 */
public class UserController {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = context.getBean("userService", UserService.class);
        userService.getById(2L);

//        User user = new User();
//        user.setId(5L);
//        user.setName("Maple5");
//        user.setAge(36);
//        userService.saveOrUpdate(user);
//        userService.getById(1L);

    }
}
